package org.am;

import org.am.ether.EtherWeb3j;

public class App {
    public static void main(String[] args) {
        String rpc = "http://localhost:8545";
        EtherWeb3j target = new EtherWeb3j(rpc);
        while (true) {
            Long blockNumber = target.getBlockNumber();
            System.out.println(blockNumber);
            try {
                Thread.sleep(10000);
            } catch (Exception e) {

            }
        }
    }
}
